<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="x" uri="/soar-bx-tags"%>
<x:HeaderParts />
<x:MainPartsTag>
	<x:zone name="MainZone">
		<x:Form action="org/organization.shtml">
			<x:TabParts activeIndex="0" tabs="[组织机构:'']"></x:TabParts>
			<x:ParamsParts>
				<x:SearchParts>
					名称：<x:TextField name="searchOrgName" title="名称"></x:TextField>
					机构代码：<x:TextField name="searchOrgCode" title="机构代码"></x:TextField>
				</x:SearchParts>
			</x:ParamsParts>
			<x:DataListParts>
				<thead>
					<tr>

						<td width="1%">序号</td>
						<td width="1%"><input type="checkbox" data-x="mult"
							data-target="ids">
						</td>
						<td width="6%" sort="T1.ORG_NAME">组织名称</td>
						<td width="4%" align="center">组织代码</td>
						<td width="4%" align="center">电话</td>
						<td width="4%" align="center">手机</td>
						<td width="4%" align="center">Email</td>
						<td width="1%" align="center" sort="T1.STATUS">状态</td>
						<td width="1%" align="center">操作</td>
					</tr>
				</thead>
				<tbody>


					<s:iterator value="sysPageList">
						<tr>
							<td><s:property value="PAGE_ROW_NUM" /></td>
							<td><input type="checkbox" name="ids"
								value="<s:property value="ID" />">
							</td>
							<td><s:property value="ORG_NAME" maxLength="" /></td>
							<td align="center"><s:property value="ORG_CODE" /></td>
							<td align="center"><s:property value="TELPHONE" /></td>
							<td align="center"><s:property value="MOBILE" /></td>
							<td align="center"><s:property value="EMAIL" /></td>

							<s:if test="STATUS==\"1\"">
								<td align="center"><font color="blue">正常</font></td>
							</s:if>
							<s:elseif test="STATUS==\"0\"">
								<td align="center"><font color="red">禁用</font></td>
							</s:elseif>
							<s:else></s:else>
							<td align="center"><input type="button"
								class="btn btn-info btn-xs" value="编辑"
								onclick="X.Modal('org/organization!doShow.shtml?id=<s:property value="ID"/>','','','750px','250px','编辑')">
							</td>
						</tr>
					</s:iterator>
				</tbody>
			</x:DataListParts>
			<x:ButtonsParts>
				<x:Button value="新增" role="primary" size="sm"
					onclick="doNew()" />
				<x:Button value="删除" role="danger" size="sm" onclick="doDelete()" />
			</x:ButtonsParts>
			
			<x:JsParts fn="doDelete,doNew">
			
function doDelete()
{
	if(X.ChkSlt('ids')) 
	{
		X.Alert("确定删除？将解除组织机构下所有绑定用户","X.Submit('doDelete')");
	}
}

function doNew(){
	X.Modal('org/organization!doNew.shtml','','','750px','262px','新增');
}
			
			</x:JsParts>
		</x:Form>
	</x:zone>
</x:MainPartsTag>
